<template>
  <div class="details">
    <el-card>
      <el-tabs>
        <el-tab-pane label="登陆账户设置">
          <el-form label-width="120px">
            <el-form-item label="姓名：">
              <el-input />
            </el-form-item>
            <el-form-item label="密码：">
              <el-input type="password" />
            </el-form-item>
            <el-form-item>
              <el-button type="primary">更新</el-button>
              <el-button>取消</el-button>
            </el-form-item>
          </el-form>
        </el-tab-pane>
        <el-tab-pane label="个人详情">
          <component :is="'UserInfo'" />
        </el-tab-pane>
        <el-tab-pane label="岗位信息">
          <component :is="'JobInfo'" />
        </el-tab-pane>
      </el-tabs>
    </el-card>
  </div>
</template>

<script>
export default {
  name: 'Details',
  components: {
    UserInfo: () => import('./components/userInfo.vue'),
    JobInfo: () => import('./components/jobInfo.vue')
  },
  data() {
    return {}
  }
}
</script>

<style lang="scss" scoped>
.details {
  padding: 20px;
  .el-form {
    padding-left: 200px;
  }
  ::v-deep .el-form-item__label {
    font-weight: normal;
  }
  .el-input {
    width: 40%;
  }
}
</style>
